#ifndef map_hpp
#define map_hpp

#include <allegro.h>
#include <iostream>
#include <string>
#include "main.hpp"

class cMap
{
  private:
    BITMAP * tex;

  public:
    sPoint * size;
    sPoint * shift;

    int ** map;

    void loadmap(const char * mapname);
    void drawmap(BITMAP * bufor,sPoint * show);
    bool isOnMap(sPoint p);//zwraca czy punkt jest na mapie

    cMap();

};


#endif
